﻿<UserControl
    x:Class="EString.PropertyGrid.Editors.MatrixEditor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EString.PropertyGrid.Editors"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <UserControl.Resources>
        <SolidColorBrush x:Key="TextBrush" Color="Black"/>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>


        <Slider x:ConnectionId='1' x:Name="m11"  VerticalAlignment="Top" Grid.Column="1"                                  Maximum="1000000" Minimum="-1000000"/>
        <Slider x:ConnectionId='2' x:Name="m12"  VerticalAlignment="Top" Grid.Column="1" Grid.Row="1" Margin="0,2,0,0"                                 Maximum="1000000" Minimum="-1000000"/>
        <Slider x:ConnectionId='3' x:Name="m21"  VerticalAlignment="Top" Grid.Column="1" Grid.Row="2" Margin="0,2,0,0"                                 Maximum="1000000" Minimum="-1000000"/>
        <Slider x:ConnectionId='4' x:Name="m22"  VerticalAlignment="Top" Grid.Column="1" Grid.Row="3" Margin="0,2,0,0"                                 Maximum="1000000" Minimum="-1000000"/>
        <TextBlock VerticalAlignment="Center" Text="M11" TextWrapping="Wrap" HorizontalAlignment="Left" FontFamily="Comic Sans MS" />
        <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Text="M12" TextWrapping="Wrap" Grid.Row="1" Margin="0,2,0,0" FontFamily="Comic Sans MS" />
        <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Text="M21" TextWrapping="Wrap" Grid.Row="2" Margin="0,2,0,0" FontFamily="Comic Sans MS" />
        <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Text="M22" TextWrapping="Wrap" Grid.Row="3" Margin="0,2,2,0" FontFamily="Comic Sans MS" />
        <Slider x:ConnectionId='5' x:Name="sliderX"  VerticalAlignment="Top" Grid.Column="1" Grid.Row="4"                                     Maximum="1000000" Minimum="-1000000" Margin="0,2,0,0" Height="22"/>
        <TextBlock HorizontalAlignment="Left" Text="OffsetX" TextWrapping="Wrap" Grid.Row="4" FontFamily="Comic Sans MS" d:LayoutOverrides="Height" VerticalAlignment="Center" Margin="0,2,2,0" />
        <Slider x:ConnectionId='6' x:Name="sliderY"  VerticalAlignment="Top" Grid.Column="1" Grid.Row="5"                                     Maximum="1000000" Minimum="-1000000" Margin="0,2,0,0"/>
        <TextBlock HorizontalAlignment="Left" Text="OffsetY" TextWrapping="Wrap" Grid.Row="5" FontFamily="Comic Sans MS" d:LayoutOverrides="Height" VerticalAlignment="Center" Margin="0,2,2,0" />
    </Grid>
</UserControl>

